package com.zyj.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zyj.dao.AssetDao;
import com.zyj.pojo.Asset;

@Service
@Transactional
public class AssetService {
	private AssetDao assetDao;
	public List<Asset> findAll() {
		return assetDao.find();
	}
	public Asset findById(Integer id) {
		// TODO Auto-generated method stub
		return assetDao.findById(id);
	}
	
	
	//get set
	@Autowired
	public void setAssetDao(AssetDao assetDao) {
		this.assetDao = assetDao;
	}


	

	
	
}
